|
Command: |
Validate the S5 Variant MAC for new terminals |
|
Notes: |
Use of this command requires the optional ESP licence. Error code 67 will be returned if the command is not licensed. |
|
Field |
Length & Type |
Details | |
|
COMMAND MESSAGE |
|||
|
Message Header |
m A |
Will be returned to the Host unchanged | |
|
Command Code |
2 A |
Value “X8” | |
|
*KMACS5 |
32 H |
Double length KMACS5 encrypted under LMK pair 20-21 variant 8 | |
|
S5 Variant |
16 H |
Signature for verification | |
|
Length of DDCEP |
1 B |
Length of DDCEP field (range 0 to 16) | |
|
Record Length |
2 B |
Record Length | |
|
Record Type |
1 B |
Record Type | |
|
IDRECORD |
2 B |
Record number within batch | |
|
RIDPSAM |
5 B |
The RID of the PSAM creator | |
|
IDPSAMCREATOR |
4 B |
The identifier assigned to the PSAM creator by the RIDPSAM owner | |
|
IDPSAM |
4 B |
Identifier for a PSAM | |
|
IDBATCH |
2 B |
Identifier for a POS Transaction Batch | |
|
NTPSAM |
4 B |
PSAM Transaction Number | |
|
MTOTSIGNED |
4 B |
Net value of record | |
|
CURRPDA |
3 B |
Currency of transaction | |
|
IDSCHEME |
1 B |
Reference number assigned to AIDCEP in AID table | |
|
IDISS |
4 B |
Issuer Identifier | |
|
IDCEP |
6 B |
ID of CEP or IEP application | |
|
NTCEP |
2 B |
CEP card transaction number | |
|
S6’ or S6’’ |
8 B |
Signature from CEP card | |
|
NTISS, SIGNED |
2 B |
Number of transactions accounted for in the signed MTOT in this summary | |
|
MTOTNOSIG |
4 B |
Unsigned net value of record | |
|
NTISS, NOSIG |
4 B |
Number of transactions included in unsigned net value | |
|
ALGKS |
1 B |
Algorithm used to calculate S4 and S5 MACs | |
|
LDDCEP |
1 B |
Length of the DDCEP field | |
|
DDCEP |
N B |
DDCEP response | |
|
NUMSEG |
1 B |
Number of Segments | |
|
End Message Delimiter |
1 C |
Optional. Must be present if a message trailer is present. Value X'19 | |
|
Message Trailer |
n A |
Optional. Maximum length 32 characters | |
|
Field |
Length & Type |
Details |
|
RESPONSE MESSAGE |
||
|
Message Header |
m A |
Will be returned to the Host unchanged |
|
Response Code |
2 A |
Value “X9” |
|
Error Code |
2 N |
00 – No error. S5 variant validated successfully 01 – S5 variant validation failed. 10 – KMAC parity error 12 – No keys loaded in user storage 13 – LMK error - report to Supervisor 15 – Error in input data 21 – Invalid user storage index |
|
End Message Delimiter |
1 C |
Will only be present if present in the command message. Value X'19 |
|
Message Trailer |
n A |
Will only be present if in the command message. Maximum length 32 characters |